package com.springboot.demoboot.service.impl;

import com.springboot.demoboot.entity.User;
import com.springboot.demoboot.mapper.UserMapper;
import com.springboot.demoboot.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName UserServiceImpl
 * @Description TODO
 * @Author bamboo
 * @Date 2019/4/17 10:48
 * @Version 1.0
 **/
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public int insertUser(User user){

        return userMapper.insert(user);
    }
    @Override
    public List<User> findUserList(){
        return userMapper.selectUserList();
    }
}
